<div class="cat_page">
  <div class="def_div f_left">
    <div class="item_list_show">
    
      <h2>Order List</h2>
      <?php
	  		if(isset($Order_list) and ($Order_list))
				{
	  ?>
                  <div class="def_div f_left">
                    <table width="100%" cellspacing="0" cellpadding="0" border="0" class="grid_table_list_3">
                      <tbody>
                        <tr class="tGb_blk">
                          <th width="5%">&nbsp;</th>
                          <th width="25%">Order ID </th>
                          <th width="15%">Price</th>
                          <th width="20%">Order Status</th>
                          <th width="20%">Order Date</th>
                          <th width="10%">&nbsp;</th>
                        </tr>
                    <?php
					$x=1; 
					    foreach($Order_list as $Order)
							{
								//pr($Order['Order']['payment_status']);
								//exit;
						?>
								<tr bgcolor="#f3f3f3">
								  <td width="5%"><b><?php echo $x; ?>.</b></td>
								  <td width="25%"><b>
						  <?php echo $html->link($Order['Order']['tracking_id'], array('action'=>'order_detail',$Order['Order']['tracking_id']));?>
								</b></td>
								  <td width="15%"><b>$ <?php echo $Order['Order']['total_price']; ?></b></td>
								  <td width="20%"><b><?php
								  			 if($Order['Order']['payment_status']==1){
									 				 echo "Paid";
											}else{
													echo "Unpaid";
												 } ?></b></td>
								  <td width="20%"><b><?php echo $Order['Order']['created']; ?></b></td>
								  <td width="10%">
								  <?php echo $html->link('View Deatil', array('action'=>'order_detail',$Order['Order']['tracking_id']));?>
								  </td>
								</tr>
							<?php
					$x++;
							}
						?>
                      </tbody>
                    </table>
                  </div>
      <?php
				}
				else
				{
					echo "Sorry there is no current Orders";
				}
	  ?>
    </div>
  </div>
</div>
<div class="pad_10"></div>
<div class="common_border"></div>
